package com.yang.trainingCamp.controller;

import com.yang.trainingCamp.service.CoachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class CamperController {

    @Autowired
    private CoachService coachService;

    @PostMapping("/enableDisable")
    public Map<String, Object> EnableDisable(@RequestParam(name = "coachOrRegionId") String coachOrRegionId,
                                             @RequestParam(name = "coachOrRegion") String coachOrRegion,
                                             @RequestParam(name = "enableOrDisable") String enableOrDisable){

        return coachService.EnableDisable(coachOrRegionId, coachOrRegion, enableOrDisable);

    }
}
